import subprocess
import os
import time
def terminal_write(command):
    full_command = f"terminator -e 'bash -c \"{command}; exec bash\"'"
    subprocess.run(full_command, shell=True)


os.system("gpio mode 27 out")
while (True):
    
    os.system("gpio write 27 0")
    time.sleep(1)
    os.system("gpio write 27 1")
    time.sleep(1)
#terminal_write("gpio write 27 1")